/**
 * ourcarlife
 */
package com.whilefor.runner.modules.runner.entity;

import com.whilefor.runner.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import com.whilefor.runner.modules.sys.entity.Area;

import com.whilefor.runner.common.persistence.DataEntity;

/**
 * 跑腿路线订单管理Entity
 * @author lins
 * @version 2016-04
 */
public class RunnerRunOrder extends DataEntity<RunnerRunOrder> {
	
	private static final long serialVersionUID = 1L;
	private String orderMoney;		// 订单金额
	private User sellerId;		// 归属商家id
	private String sellerName;		// 归属商家名称
	private User consumerId;		// 用户id
	private String consumerName;		// 用户名称
	private User runnerId;		// runner_id
	private String runnerName;		// 跑腿人名
	private Area startAreaId;		// 区域
	private String startLon;		// 经度
	private String startLat;		// 纬度
	private String startRoad;		// 开始地址
	private Area finishAreaId;		// 区域id
	private String finishRoad;		// 结束地址
	private String finishLon;		// 结束经度
	private String finishLat;		// 结束纬度
	private String roadMapPath;		// 路线图位置
	private String oroderFrom;		// 订单来源
	private String userPlannedPhone;		// 订单人电话
	private String state;		// 订单状态
	
	public RunnerRunOrder() {
		super();
	}

	public RunnerRunOrder(String id){
		super(id);
	}

	public String getOrderMoney() {
		return orderMoney;
	}

	public void setOrderMoney(String orderMoney) {
		this.orderMoney = orderMoney;
	}
	
	public User getSellerId() {
		return sellerId;
	}

	public void setSellerId(User sellerId) {
		this.sellerId = sellerId;
	}
	
	@Length(min=0, max=64, message="归属商家名称长度必须介于 0 和 64 之间")
	public String getSellerName() {
		return sellerName;
	}

	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}
	
	public User getConsumerId() {
		return consumerId;
	}

	public void setConsumerId(User consumerId) {
		this.consumerId = consumerId;
	}
	
	@Length(min=0, max=100, message="用户名称长度必须介于 0 和 100 之间")
	public String getConsumerName() {
		return consumerName;
	}

	public void setConsumerName(String consumerName) {
		this.consumerName = consumerName;
	}
	
	public User getRunnerId() {
		return runnerId;
	}

	public void setRunnerId(User runnerId) {
		this.runnerId = runnerId;
	}
	
	@Length(min=0, max=30, message="跑腿人名长度必须介于 0 和 30 之间")
	public String getRunnerName() {
		return runnerName;
	}

	public void setRunnerName(String runnerName) {
		this.runnerName = runnerName;
	}
	
	public Area getStartAreaId() {
		return startAreaId;
	}

	public void setStartAreaId(Area startAreaId) {
		this.startAreaId = startAreaId;
	}
	
	public String getStartLon() {
		return startLon;
	}

	public void setStartLon(String startLon) {
		this.startLon = startLon;
	}
	
	public String getStartLat() {
		return startLat;
	}

	public void setStartLat(String startLat) {
		this.startLat = startLat;
	}
	
	@Length(min=0, max=1000, message="开始地址长度必须介于 0 和 1000 之间")
	public String getStartRoad() {
		return startRoad;
	}

	public void setStartRoad(String startRoad) {
		this.startRoad = startRoad;
	}
	
	public Area getFinishAreaId() {
		return finishAreaId;
	}

	public void setFinishAreaId(Area finishAreaId) {
		this.finishAreaId = finishAreaId;
	}
	
	@Length(min=0, max=1000, message="结束地址长度必须介于 0 和 1000 之间")
	public String getFinishRoad() {
		return finishRoad;
	}

	public void setFinishRoad(String finishRoad) {
		this.finishRoad = finishRoad;
	}
	
	public String getFinishLon() {
		return finishLon;
	}

	public void setFinishLon(String finishLon) {
		this.finishLon = finishLon;
	}
	
	public String getFinishLat() {
		return finishLat;
	}

	public void setFinishLat(String finishLat) {
		this.finishLat = finishLat;
	}
	
	@Length(min=0, max=40, message="路线图位置长度必须介于 0 和 40 之间")
	public String getRoadMapPath() {
		return roadMapPath;
	}

	public void setRoadMapPath(String roadMapPath) {
		this.roadMapPath = roadMapPath;
	}
	
	@Length(min=1, max=6, message="订单来源长度必须介于 1 和 6 之间")
	public String getOroderFrom() {
		return oroderFrom;
	}

	public void setOroderFrom(String oroderFrom) {
		this.oroderFrom = oroderFrom;
	}
	
	@Length(min=0, max=20, message="订单人电话长度必须介于 0 和 20 之间")
	public String getUserPlannedPhone() {
		return userPlannedPhone;
	}

	public void setUserPlannedPhone(String userPlannedPhone) {
		this.userPlannedPhone = userPlannedPhone;
	}
	
	@Length(min=1, max=6, message="订单状态长度必须介于 1 和 6 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
}